<!DOCTYPE html>
<html>

<head>

    {include file="Public/header"}
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>

<body style="color:#333;padding:3px;" class="gray-bg">
    <!-- 标题 -->
    <div class="page-heade">
      <h1 class="title_color">网点审批决策依据- <a href="javascript:;" style="font-size:24px">{$net.title}</a>编号：{$net.sn}</h1>
    </div>
    <div class="contact-box colorRed" style="background:#f3f3f4">
        注:本决策依据中网点的市场费用均只计入活动开始时间！
    </div>
    <!-- 标题 -->
    <div>
    <form action="" class="form-inline">
      <table class="table text-center table-bordered table-hover bud_hei">
          <tr class="info">
            <td class="text-left font-bold" colspan="16">决策依据（一）<span style="color:blue">{$net.title}</span>的<span style="color:blue">投入产出</span><span>(从2017年01月01日算起)</span><span style="float: right;">金额单位：元</span></td>
          </tr>

          <tr class="info">
            <td style="min-width: 100px">年/月</td>
            <td>&nbsp;</td>
            <td>1月</td>
            <td>2月</td>
            <td>3月</td>
            <td>4月</td>
            <td>5月</td>
            <td>6月</td>
            <td>7月</td>
            <td>8月</td>
            <td>9月</td>
            <td>10月</td>
            <td>11月</td>
            <td>12月</td>
            <td>平均</td>
            <td>合计</td>
          </tr>
          {volist name="hasc" id="c"}
          <tr class="success">
            <td style="min-width: 100px;background: #d3ffff" rowspan="3">{$c.title}</td>
            <td>投入额</td>
            {volist name="$c.kaohe2" id="k2"}
              <td class="num2">{$k2.zc}</td>
            {/volist}
            <td class="font-bold num2">{$c.avgzc}</td>
            <td class="font-bold num2">{$c.zongzc}</td>
          </tr>
            <tr>
            <td>发运额</td>
            {volist name="$c.kaohe2" id="k2"}
              <td class="num2">{$k2.fy}</td>
            {/volist}
            <td class="font-bold num2">{$c.avgfy}</td>
            <td class="font-bold num2">{$c.zongfy}</td>
          </tr>
           <tr class="warning">
           <td>费用率</td>
            {volist name="$c.kaohe2" id="k2"}
              <td>{$k2.fl}</td>
            {/volist}
            <td class="font-bold">-</td>
            <td class="font-bold">{$c.fl}</td>
          </tr>
          {/volist}
         
           
      </table>
        <table class="table row-margin-top text-center table-bordered table-hover bud_hei">
          <tr class="info">
            <td class="text-left font-bold" colspan="15">决策依据（二）<span style="color:blue">{$net.title}</span>的<span style="color:blue">网点销量月报</span><span>(从2015年01月01日算起)</span><span style="float: right;">金额单位：元</span></td>
          </tr>
          <tr class="info">
            <td style="min-width: 100px">年/月</td>
            <td>1月</td>
            <td>2月</td>
            <td>3月</td>
            <td>4月</td>
            <td>5月</td>
            <td>6月</td>
            <td>7月</td>
            <td>8月</td>
            <td>9月</td>
            <td>10月</td>
            <td>11月</td>
            <td>12月</td>
            <td>平均</td>
            <td>合计</td>
          </tr>
          <tr>
            <td colspan="15">无数据</td>
          </tr>
    </table>
     <table class="table row-margin-top text-center table-bordered table-hover bud_hei">
          <tr class="info">
            <td class="text-left font-bold" colspan="5">决策依据（三）<span style="color:blue">{$net.title}</span>的条码情况</td>
          </tr>
           <tr class="info">
            <td class="text-left font-bold" colspan="5">已进场条码：<span>{$ctm}</span></td>
          </tr>
          <tr class="info font-bold">
            <td style="min-width: 180px">编号</td>
            <td style="min-width: 240px">名称</td>
            <td style="min-width: 120px">进厂日期</td>
            <td style="min-width: 120px">进场费(元)</td>
            <td style="min-width: 120px">零售价(元)</td>
            
          </tr>
          {if $ctm==0}
          <tr><td colspan="5">无数据</td></tr>
          {else/}
            {volist name="tm" id="t" length="3"}
              <tr class="jg">
                <td>{$t.pro_no}</td>
                <td>{$t.pro_name}</td>
                <td>{$t.intime}</td>
                <td class="text-right num2">{$t.infee}</td>
                <td class="text-right num2">{$t.retailPrice}</td>
              </tr>
            {/volist}
            {if $ctm>3}
            {volist name="tm" id="t" offset="3"}
             <tr class="jg jgh">
                <td>{$t.pro_no}</td>
                <td>{$t.pro_name}</td>
                <td>{$t.intime}</td>
                <td class="text-right num2">{$t.infee}</td>
                <td class="text-right num2">{$t.retailPrice}</td>
              </tr>
            {/volist}
            <tr>
                    <td colspan="5" class="text-right"><a href="javascript:;" id="jgmore">更多...</a><a style="display: none;" href="javascript:;" id="jgless">收起...</a></td>

            </tr>
            {/if}
                  
          
          {/if}
    </table>
      <table class="table row-margin-top text-center table-bordered table-hover bud_hei">
          <tr class="info">
            <td class="text-left font-bold" colspan="6">已退场条码：<span>{$ctuim}个</span></td>
          </tr>
          <tr class="info">
            <td style="min-width: 100px">编号</td>
            <td>名称</td>
            <td>退场日期</td>
            <td>进场费(元)</td>
            <td>零售价(元)</td>
            <td>退场原因</td>
          </tr>
          {if $ctuim==0}
          <tr>
            <td colspan="6">无数据</td>
          </tr>
          {else/}
            {volist name="tuim" id="t" length="3"}
              <tr class="tg">
                <td>{$t.pro_no}</td>
                <td>{$t.pro_name}</td>
                <td>{$t.tuichangshijian}</td>
                <td class="text-right num2">{$t.infee}</td>
                <td class="text-right num2">{$t.retailPrice}</td>
                <td>{$t.tuichangyuanyin}</td>
              </tr>
              {if $ctuim>3}
              {volist name="tuim" id="t" offset="3"}
               <tr class="tg tgh">
                  <td>{$t.pro_no}</td>
                  <td>{$t.pro_name}</td>
                  <td>{$t.tuichangshijian}</td>
                  <td class="text-right num2">{$t.infee}</td>
                  <td class="text-right num2">{$t.retailPrice}</td>
                  <td>{$t.tuichangyuanyin}</td>
                </tr>
              {/volist}
              <tr>
                      <td colspan="6" class="text-right"><a href="javascript:;" id="tgmore">更多...</a><a style="display: none;" href="javascript:;" id="tgless">收起...</a></td>

              </tr>
              {/if}
              {/volist}
          {/if}
    </table>
    <table class="table row-margin-top text-center table-bordered table-hover bud_hei">
          <tr class="info">
            <td class="text-left font-bold" colspan="5">决策依据（四）<span style="color:blue">{$net.title}</span>的竞品情况</td>
          </tr>
           <tr class="info">
            <td style="min-width: 100px">竞品品类</td>
            <td>竞品名称</td>
            <td>竞品规格</td>
            <td>零售价(元)</td>
            <td style="min-width: 280px">竞品描述</td>
            
          </tr>
          {if $cjp==0}
          <tr><td colspan="5">无数据</td></tr>
          {else/}
            {volist name="jp" id="t" length="3"}
              <tr class="jp">
                <td>{$t.category_name}</td>
                <td>{$t.c_name}</td>
                <td>{$t.format}</td>
                <td class="text-right num2">{$t.price}</td>
                <td>{$t.brief}</td>
              </tr>
            {/volist}
               {if $cjp>3}
                {volist name="jp" id="t" offset="3"}
                 <tr class="jp jph">
                    <td>{$t.category_name}</td>
                    <td>{$t.c_name}</td>
                    <td>{$t.format}</td>
                    <td class="text-right num2">{$t.price}</td>
                    <td>{$t.brief}</td>
                  </tr>
                {/volist}
                <tr>
                        <td colspan="5" class="text-right"><a href="javascript:;" id="jpmore">更多...</a><a style="display: none;" href="javascript:;" id="jpless">收起...</a></td>

                </tr>
              {/if}
          {/if}
    </table>
     <table class="table row-margin-top text-center table-bordered table-hover bud_hei">
          <tr class="info">
            <td class="text-left font-bold" colspan="11">决策依据（五）<span style="color:blue">{$net.title}</span>最近5次活动</td>
          </tr>
           <tr class="info">
            <td style="min-width: 100px">编号</td>
            <td style="min-width: 100px">明细编号</td>
            <td>类型</td>
            <td>申请人</td>
            <td>三级费用科目</td>
            <td>预计花费</td>
            <td>实际花费</td>
            <td>预计销量</td>
            <td>实际销量</td>
            <td>活动时间</td>
            <td>产品</td>
          </tr>
          {if $chd==0}
          <tr><td  colspan="11">无数据</td></tr>
          {else/}
          {volist name="hd" id="t"}
          <tr class="hd">
            <td>{$t.sn}</td>
            <td>{$t.sn}-{$t.tdsn}</td>
            <td>{if $t.type_id==2}常规促销{elseif $t.type_id==1}进场费用{else/}非常规促销{/if}</td>
            <td>{$t.cuser}</td>
            <td>{$t.feetype}</td>
            <td class="text-right num2">{$t.pizhunhanshui}</td>
            <td class="text-right num2">{$t.fb_shijitourufeiyong}</td>
            <td class="text-right num2">{$t.totalExpectedSales}</td>
            <td class="text-right num2">{$t.fb_shijixiaoliang}</td>
            <td>{$t.start}至{$t.end}</td>
            <td>{$t.product}</td>
          </tr>
          {/volist}
          {if $chd>5}
          <tr><td  colspan="11" class="text-right"><a>历史活动一览表</a></td></tr>
          {/if}
          {/if}
    </table>
     <table class="table row-margin-top text-center table-bordered table-hover bud_hei">
          <tr class="info">
            <td class="text-left font-bold" colspan="5">决策依据（六）<span style="color:blue">{$net.title}</span>的导购员详情</td>
          </tr>
           <tr class="info">
            <td style="min-width: 100px">姓名</td>
            <td>性别</td>
            <td>联系电话</td>
            <td>状态</td>
            <td>入职时间</td>
          </tr>
          {if $cdg==0}
          <tr><td colspan="5">无数据</td></tr>
          {else/}
            {volist name="dg" id="t" length="3"}
              <tr class="dg">
                <td>{$t.em_name}</td>
                <td>{if $t.gender==1}男{else/}女{/if}</td>
                <td>{$t.mobile}</td>
                <td>{if $t.state==1}在职{elseif $t.state==2/}试用{else/}离职{/if}</td>
                <td>{$t.entry}</td>
              </tr>
            {/volist}
            {if $cdg>3}
                {volist name="dg" id="t" offset="3"}
                 <tr class="dg dgh">
                    <td>{$t.em_name}</td>
                    <td>{if $t.gender==1}男{else/}女{/if}</td>
                    <td>{$t.mobile}</td>
                    <td>{if $t.state==1}在职{elseif $t.state==2/}试用{else/}离职{/if}</td>
                    <td>{$t.entry}</td>
                  </tr>
                {/volist}
                <tr>
                        <td colspan="5" class="text-right"><a href="javascript:;" id="dgmore">更多...</a><a style="display: none;" href="javascript:;" id="dgless">收起...</a></td>

                </tr>
              {/if}
          {/if}
    </table>
     <table class="table row-margin-top text-center table-bordered table-hover bud_hei">
          <tr class="info">
            <td class="text-left font-bold">决策依据（七）<span style="color:blue">{$net.title}</span>的库存情况</td>
          </tr>
          <tr><td>无数据</td></tr>
    </table>
     <table class="table row-margin-top text-center table-bordered table-hover bud_hei">
          <tr class="info">
            <td colspan="5" class="text-left font-bold">决策依据（八）<span style="color:blue">{$net.title}</span>的拜访情况</td>
          </tr>
          <tr class="info">
            <td style="min-width: 100px">拜访人</td>
            <td>部门</td>
            <td>状态</td>
            <td>制定时间</td>
            <td>拜访日期</td>
          </tr>
          {if $cbf==0}
          <tr><td colspan="5">无数据</td></tr>
          {else/}
          {volist name="bf" id="t" length="3"}
              <tr class="bf">
                <td>{$t.em_name}</td>
                <td>{$t.de_name}</td>
                <td>{if $t.ddsj}已拜访{else/}未拜访{/if}</td>
                <td>{$t.dzsj}</td>
                <td>{$t.rq}</td>
              </tr>
            {/volist}
            {if $cbf>3}
                {volist name="bf" id="t" offset="3"}
                <tr class="bf bfh">
                  <td>{$t.em_name}</td>
                  <td>{$t.de_name}</td>
                  <td>{if $t.ddsj}已拜访{else/}未拜访{/if}</td>
                  <td>{$t.dzsj}</td>
                  <td>{$t.rq}</td>
                </tr>
                {/volist}
                <tr>
                        <td colspan="5" class="text-right"><a href="javascript:;" id="bfmore">更多...</a><a style="display: none;" href="javascript:;" id="bfless">收起...</a></td>

                </tr>
              {/if}
          {/if}
    </table>
</form>
    </div>
    <!-- 全局js -->
     {include file="Public/footer"}
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script type="text/javascript">
    $(function(){
        $(".bfh").hide();
        $(".bf:even").addClass("success");
        $(".bf:odd").addClass("warning");
        $("#bfmore").click(function(){
          $("#bfless").show();
          $(".bfh").show();
          $(this).hide();
        })
        $("#bfless").click(function(){
          $("#bfmore").show();
          $(".bfh").hide();
          $(this).hide();
        })

        $(".hd:even").addClass("success");
        $(".hd:odd").addClass("warning");

        $(".dgh").hide();
        $(".dg:even").addClass("success");
        $(".dg:odd").addClass("warning");
        $("#dgmore").click(function(){
          $("#dgless").show();
          $(".dgh").show();
          $(this).hide();
        })
        $("#dgless").click(function(){
          $("#dgmore").show();
          $(".dgh").hide();
          $(this).hide();
        })

        $(".jph").hide();
        $(".jp:even").addClass("success");
        $(".jp:odd").addClass("warning");
        $("#jpmore").click(function(){
          $("#jpless").show();
          $(".jph").show();
          $(this).hide();
        })
        $("#jpless").click(function(){
          $("#jpmore").show();
          $(".jph").hide();
          $(this).hide();
        })


        $(".jgh").hide();
        $(".jg:even").addClass("success");
        $(".jg:odd").addClass("warning");
        $("#jgmore").click(function(){
          $("#jgless").show();
          $(".jgh").show();
          $(this).hide();
        })
        $("#jgless").click(function(){
          $("#jgmore").show();
          $(".jgh").hide();
          $(this).hide();
        })

        $(".tgh").hide();
        $(".tg:even").addClass("success");
        $(".tg:odd").addClass("warning");
        $("#tgmore").click(function(){
          $("#tgless").show();
          $(".tgh").show();
          $(this).hide();
        })
        $("#tgless").click(function(){
          $("#tgmore").show();
          $(".tgh").hide();
          $(this).hide();
        })

         $(".num2").each(function(){
          if(isNaN(parseFloat($(this).html()))||$(this).html()==""){
            $(this).html("-")
          }else{
            $(this).html(parseFloat($(this).html()).toFixed(2));
          }
        })
    })
    
    </script>
</body>

</html>
